package com.xcf.service.business.common.branchcompany.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.branchcompany.BranchCompanyService;
import com.xcf.util.PageData;
@Service("BranchCompanyServiceImpl")
public class BranchCompanyServiceImpl implements BranchCompanyService{
	@Resource(name="daoSupport")
	private  DaoSupport daosuport;

	//列表的显示及查询
	@Override
	public List<PageData> seach(PageData pd) throws Exception {
		
		return (List<PageData>) daosuport.findForList("branchcompanymapper.seach", pd);
	}
	

	//新增
	@Override
	public void save(PageData pd) throws Exception {
		daosuport.save("branchcompanymapper.save", pd);
		
	}

	//修改

	@Override
	public void update(PageData pd) throws Exception {
		daosuport.update("branchcompanymapper.update", pd);
		
	}


	//删除
	@Override
	public void delete(PageData pd) throws Exception {
		daosuport.delete("branchcompanymapper.delete", pd);
		
	}
}
